﻿using test.Model;

namespace test.Dal
{
    public class testDal
    {
        public testDal(MyDBContext db)
        {
            Db = db;
        }

        public MyDBContext Db { get; }

        /// <summary>
        /// 用户信息基本录入
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public int PostTest(T_User info)
        {
            try
            {
                Db.T_User.Add(info);
                return Db.SaveChanges();
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}